package com.xcdh.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableName;



/**
 * 菜单权限表
 *
 * @author ${author}
 * @email ${email}
 * @date 2023-10-02 14:20:03
 */
@Data
@TableName("sys_menu")
public class MenuDO extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Long menuId;
    //菜单名称
    @TableField("`name`")
    private String name;
    //菜单权限标识
    private String permission;
    //前端URL
    private String path;
    //父菜单ID
    private Long parentId;
    //图标
    private String icon;
    //排序值
    private Integer sortOrder;
    //0-开启，1- 关闭
    private String keepAlive;
    //菜单类型 （0菜单 1按钮）
    private String type;
    //逻辑删除标记(0--正常 1--删除)
    private String delFlag;

    @TableField(exist = false)
    List<MenuDO> children = new ArrayList<>() ;
}
